#ifndef __BSP_TIMER4_H__
#define __BSP_TIMER4_H__


#include "config.h"

#define GENERAL_TIM4_Period    0xffff
#define GENERAL_TIM4_Prescaler  72


typedef struct
{
	FlagStatus Egde;
	uint8 ucFinishFlag;
	uint16 usCaptureRisingVal;
	uint16 usUpdateCnt;
	uint32 ulFrequency;
	
}WaveCapture;


extern WaveCapture waveCapture;

void Tim4Init(void);
void Timer4_Capture_Task_Handler(void);  //PB6用于输入捕获



#endif



